function(http_layer_find_rapidjson)
	if (TARGET http_layer_rapidjson_internal)
		return()
	endif ()

	find_path(RAPIDJSON_INCLUE_DIR rapidjson/rapidjson.h ${HTTPLAYER_3RD_OUTDIR}/rapidjson-1.1.0/include)
	include(FindPackageHandleStandardArgs)
	find_package_handle_standard_args(RAPIDJSON DEFAULT_MSG RAPIDJSON_INCLUE_DIR)

	add_library(http_layer_rapidjson_internal INTERFACE)
	target_include_directories(http_layer_rapidjson_internal INTERFACE "$<BUILD_INTERFACE:${RAPIDJSON_INCLUE_DIR}>")
endfunction()


